#include <stdio.h>
#include <strings.h>

int main(void)
{
    int i;
    char str[18];

    printf("输入一个单词：");
    scanf("%s", str);
    printf("the word you enter is: %s\n", str);
    printf("reverse word is: ");
    for (i = strlen(str); i >= 0; i--)
    {
        printf("%c", str[i]);
    }
    printf("\n");

    return 0;
}